package com.baobao.domain;

import java.io.Serializable;

import javax.persistence.Id;

import javax.persistence.*;

/**
 */
public class BbeventPK implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 */
	public BbeventPK() {
	}

	/**
	 */

	@Column(name = "bb_id", length = 40, nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	public String bbId;
	/**
	 */

	@Column(name = "time", length = 40, nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	public String time;

	/**
	 */
	public void setBbId(String bbId) {
		this.bbId = bbId;
	}

	/**
	 */
	public String getBbId() {
		return this.bbId;
	}

	/**
	 */
	public void setTime(String time) {
		this.time = time;
	}

	/**
	 */
	public String getTime() {
		return this.time;
	}

	/**
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = (int) (prime * result + ((bbId == null) ? 0 : bbId.hashCode()));
		result = (int) (prime * result + ((time == null) ? 0 : time.hashCode()));
		return result;
	}

	/**
	 */
	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		if (!(obj instanceof BbeventPK))
			return false;
		BbeventPK equalCheck = (BbeventPK) obj;
		if ((bbId == null && equalCheck.bbId != null) || (bbId != null && equalCheck.bbId == null))
			return false;
		if (bbId != null && !bbId.equals(equalCheck.bbId))
			return false;
		if ((time == null && equalCheck.time != null) || (time != null && equalCheck.time == null))
			return false;
		if (time != null && !time.equals(equalCheck.time))
			return false;
		return true;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder("BbeventPK");
		sb.append(" bbId: ").append(getBbId());
		sb.append(" time: ").append(getTime());
		return sb.toString();
	}
}
